package org.ejc.persist.model;

import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class Price implements Serializable {

    /** identifier field */
    private Integer priceId;

    /** nullable persistent field */
    private Double priceAmount;

    /** persistent field */
    private org.ejc.persist.model.PriceType priceType;

    /** persistent field */
    private Set transactions;

    /** full constructor */
    public Price(Integer priceId, Double priceAmount, org.ejc.persist.model.PriceType priceType, Set transactions) {
        this.priceId = priceId;
        this.priceAmount = priceAmount;
        this.priceType = priceType;
        this.transactions = transactions;
    }

    /** default constructor */
    public Price() {
    }

    /** minimal constructor */
    public Price(Integer priceId, org.ejc.persist.model.PriceType priceType, Set transactions) {
        this.priceId = priceId;
        this.priceType = priceType;
        this.transactions = transactions;
    }

    public Integer getPriceId() {
        return this.priceId;
    }

    public void setPriceId(Integer priceId) {
        this.priceId = priceId;
    }

    public Double getPriceAmount() {
        return this.priceAmount;
    }

    public void setPriceAmount(Double priceAmount) {
        this.priceAmount = priceAmount;
    }

    public org.ejc.persist.model.PriceType getPriceType() {
        return this.priceType;
    }

    public void setPriceType(org.ejc.persist.model.PriceType priceType) {
        this.priceType = priceType;
    }

    public Set getTransactions() {
        return this.transactions;
    }

    public void setTransactions(Set transactions) {
        this.transactions = transactions;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("priceId", getPriceId())
            .toString();
    }

}
